package cn.bigcontainer.alt.meta.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import cn.bigcontainer.alt.common.entity.BigMap;
import cn.bigcontainer.alt.common.po.BasePo;
import cn.bigcontainer.alt.common.po.Po;
import cn.bigcontainer.alt.common.util.WoKit;
import cn.bigcontainer.alt.meta.typehandler.BigMapHandler;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.extern.slf4j.Slf4j;

/**
 *
 * @author cailei
 * @date 2019-12-04
 */
@Slf4j
@Data
@TableName(autoResultMap = true)
@Accessors(chain = true)
public class MApp extends BasePo {

	@TableId
	protected String id;//64

	protected Integer idx;

	protected String name;//100

	protected String type;//30

	protected String template;//200

	protected String objectId;//64

	/**
	 * 0-废弃，1-使用，2-通过数据库字段默认生成的，不作为业务使用
	 */
	protected Integer status;

	@TableField(typeHandler = BigMapHandler.class)
	protected BigMap<String, Object> data = new BigMap<>();// text

	public MApp(Po po) {
		WoKit.cloneBySetter(po, this);
	}

	public MApp() {

	}

}
